﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Jzy;

namespace ECommerce.Model.Order
{
    public partial class ECStoreInfo : EntityBase
    {
        private const string TABLE_NAME = "ECStore";
        private const string INSERT_SQL = "insert into ECStore ( [ID], [AreaID], [AreaName], [Address]) values ( @ID, @AreaID, @AreaName, @Address)";
        private const string UPDATE_SQL = "update ECStore set  [ID] = @ID, [AreaID] = @AreaID, [AreaName] = @AreaName, [Address] = @Address where ID = @ID";
        /// <summary>
        /// 
        /// </summary>
        public Int32 ID
        {
            get;
            set;
        }
        /// <summary>
        /// 
        /// </summary>
        public Int32 AreaID
        {
            get;
            set;
        }
        /// <summary>
        /// 
        /// </summary>
        public String AreaName
        {
            get;
            set;
        }
        /// <summary>
        /// 
        /// </summary>
        public String Address
        {
            get;
            set;
        }
        public override void SetValue(string key, object value)
        {
            key = key.ToLower();
            switch (key)
            {
                case "id":
                    this.ID = (Int32)value;
                    break;
                case "areaid":
                    this.AreaID = (Int32)value;
                    break;
                case "areaname":
                    this.AreaName = (String)value;
                    break;
                case "address":
                    this.Address = (String)value;
                    break;
            }
        }
    }


}
